<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>小小海盗博客</title>
<!--用户登录-->
</head>

<body>
	<h1 th:text="${END}">a</h1>
	用户登录
	<span th:text="${msg}" style="color: red;"></span>
	<form th:action="@{/user/do/login}" method="POST">
		<input type="text" name="userName"> <input type="text"
			name="userPwd"> <input name="rememberMe" type="checkbox"
			value="1" checked>7天自动登录 <input name="kaptcha"
			type="userName"> <img id="captcha" th:src="@{/captcha-image}" width="200"
			title="看不清，点击换一张" onclick="flush_captcha();" /> <input type="submit" value="提交">
	</form>
</body>
</html>

<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.js"></script>
<script type="text/javascript">
	$(function() {
		$("#captcha").click(function(){
			$("#captcha").attr("src", "/captcha-image");
		})
	})
</script>
